import request from '@/utils/request'

export function project_list(name = '', page = 1, page_size = 10) {
  return request({
    url: `/admin/project_list?name=${name}&page=${page}&page_size=${page_size}`,
    method: 'get'
  })
}

export function project_info(id) {
  return request({
    url: `/admin/project_info?project_id=${id}`,
    method: 'get'
  })
}

export function project_edit(data) {
  return request({
    url: `/admin/project_edit`,
    method: 'post',
    data: data
  })
}

export function project_admins(id) {
  return request({
    url: `/admin/project_admins?project_id=${id}`,
    method: 'get'
  })
}
